package com.sdp.right.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zsp
 * @since 2023-10-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_import_template")
public class SysImportTemplate extends Model<SysImportTemplate> {

    private static final long serialVersionUID=1L;

    /**
     * 内码
     */
    @TableId(value="template_id",type=IdType.ASSIGN_ID)
    private String templateId;

    /**
     * 模块
     */
    @TableField("system_no")
    private String systemNo;

    /**
     * 模板名称
     */
    @TableField("template_name")
    private String templateName;

    /**
     * 实体名称
     */
    @TableField("entity_class_name")
    private String entityClassName;

    /**
     * 接口名
     */
    @TableField("service_class_name")
    private String serviceClassName;

    /**
     * 导入前回调
     */
    @TableField("import_before_callback")
    private String importBeforeCallback;

    /**
     * 导入后回调
     */
    @TableField("import_after_callback")
    private String importAfterCallback;

    /**
     * 行回调
     */
    @TableField("import_row_callback")
    private String importRowCallback;

    /**
     * 数据导入模式
     */
    @TableField("import_mode")
    private String importMode;


    @Override
    protected Serializable pkVal() {
        return this.templateId;
    }

}
